import Vue from "vue";
import Router from "vue-router";
import Rank from "components/rank/Rank";
import Recommend from "components/recommend/Recommend";
import Search from "components/search/Search";
import Singer from "components/singer/Singer";

Vue.use(Router);
export default new Router({
  routes:[
    {
      path:"/",
      redirect:"/recommend"//设置根路由默认路径
    },
    {
      path:"/rank",
      name:"Rank",
      component:Rank
    },
    {
      path:"/recommend",
      name:"Recommend",
      component:Recommend
    },
    {
      path:"/search",
      name:"Search",
      component:Search
    },
    {
      path:"/singer",
      name:"Singer",
      component:Singer
    }
  ]
})